package com.tengju.bff.interfaces.covercharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tengju.bff.interfaces.covercharge.entity.po.ServiceSignRecord;
import com.tengju.bff.interfaces.covercharge.entity.vo.ServiceSignRecordVo;

/**
 * <p>
 * 服务费经销商签约记录表 服务类
 * </p>
 *
 * @author CJ
 * @since 2020-08-27
 */
public interface IServiceSignRecordService extends IService<ServiceSignRecord> {
    /**
     * 获取单条信息
     * @param signId
     * @param signFrom
     * @return
     */
    ServiceSignRecordVo queryFirst(Integer signId, Integer signFrom);

    /**
     * 更新为失效
     * @param signId
     * @param signFrom
     * @return
     */
    void updateStatus(Integer signId, Integer signFrom);

    /**
     * 获取DT区域服务商最后一条签约记录信息
     * @param signId
     * @return
     */
    ServiceSignRecord queryByLastInfo(Integer signId);
}
